<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <script src="./echarts.min.js"></script>
</head>

<body>
  <div id="main" style="width: 600px;height:400px;"></div>
  <script>
    var myChart = echarts.init(document.getElementById('main'));

    option = {
      colo: '#62afff',
      title: {
        text: '2022全学科薪资走势'
      },
      
      xAxis: {
        axisLine: {
          lineStyle: {
            type: 'dashed'
          }
        },
        type: 'category',
        data: ['1月', '2月', '2月', 'Thu', 'Fri', 'Sat', 'Sun']
      },
      yAxis: {
        splitLine: {
          lineStyle: {

            type: 'dashed'
          }
        },
        type: 'value'
      },
      tooltip: {
        trigger: 'axis'
      },
      series: [
        {
          symbolSize: 8,
          lineStyle: {
            width: 3.5
          },
          areaStyle: {
            color: {
              type: 'linear',
              x: 0,
              y: 0,
              x2: 0,
              y2: 1,
              colorStops: [
                {
                  offset: 0,
                  color: '#62afff' // 0% 处的颜色
                },
                {
                  offset: 0.4,
                  color: '#fff' // 100% 处的颜色
                }
              ],
              global: false // 缺省为 false
            }
          },
          data: [13960, 16320, 13680, 15613, 12906, 11960, 14930],
          type: 'line',
          smooth: true,

        }
      ]
    };


    myChart.setOption(option);
  </script>
</body>

</html>